package com.ymatou.userregister.service;

import java.util.Map;

import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;

public class WeiXinUserRegCall extends YmatouBaseCall{
	private static String opurl ="json/reply/userregisterinforesponsedto";
	
	public WeiXinUserRegCall() {
		super(EnvSetup.getSystemUrl("api_userregister"),opurl,"POST","JSON");
	}
	
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public Map getResult(){
		Map result = (Map) FormatUtil.GSONToObject(getString("Result"), Map.class);
		return result;
	} 
}
